\section{Correciones y justificación de cambios con respecto a la primera parte}

En esta sección vamos a mencionar los cambios realizados a la gramática y las expresiones regulares de los tokens. La gramática original constaba en:

G$=$$< $$V_{n}$, $V_{t}$, S, P $>$

$V_{n}$ $=$ \{Doc, Page, Header, Body, ListaH, TitleOScript, Title, Script, ListaE, Elem, Div, H1, P\}

$V_{t}$ $=$ \{\tag{html}, \tag{/html}, \tag{head}, \tag{/head}, \tag{title}, \tag{/title}, \tag{script}, \tag{/script}, \tag{div}, \tag{/div}, \tag{br}, \tag{h1}, \tag{/h1}, \tag{p}, \tag{/p}, texto, textoScript\}

$S$ $=$ Doc

$P$ $=$\{
\begin{bnf*}
\bnfprod{Doc} 		{\tag{html} \bnfsp  \bnfpn{Page} \bnfsp\bnfsp  \tag{/html} }\\ 
	\bnfprod{Page} 		{\bnfpn{Header} \bnfsp \bnfpn{Body}} \\
	\bnfprod{Header} 	{\tag{head} \bnfsp  \bnfpn{ListH} \bnfsp\bnfsp  \tag{/head} \bnfor \bnfes}\\ 
	\bnfprod{ListH} 	{\bnfpn{TitleOScript} \bnfsp \bnfpn{ListH} \bnfor \bnfes}\\ 
	\bnfprod{TitleOScript} 		{\bnfpn{Title} \bnfor \bnfpn{Script}}\\ 
	\bnfprod{Title} 	{\tag{title} \bnfsp \bnfts{texto} \bnfsp \bnfsp \tag{/title}}\\ 
	\bnfprod{Script} 	{\tag{script} \bnfsp \bnfts{textoScript} \bnfsp \bnfsp \tag{/script}}\\ 
	\bnfprod{Body} 		{\tag{body} \bnfsp  \bnfpn{ListaE} \bnfsp\bnfsp  \tag{/body} \bnfor \bnfes}\\ 	
	\bnfprod{ListaE} 	{\bnfts{texto} \bnfsp \bnfpn{ListaE} \bnfor \tag{br} \bnfsp \bnfpn{ListaE} \bnfor \bnfpn{Elem} \bnfsp \bnfpn{ListaE} \bnfor \bnfes}\\ 
	\bnfprod{Elem} 	{\bnfpn{Div} \bnfor \bnfpn{H1} \bnfor \bnfpn{P}}\\ 
	\bnfprod{Div} 	{\tag{div} \bnfpn{ListaE} \bnfsp \tag{/div}}\\ 
	\bnfprod{H1} 	{\tag{h1} \bnfpn{ListaE} \bnfsp \tag{/h1}}\\ 
	\bnfprod{P} 	{\tag{p} \bnfpn{ListaE} \bnfsp \tag{/p}}\\ 
\end{bnf*}
\}

y las expresiones regulares de los tokens eran:

\begin{tabular}{ l  l }
	\textbf{Token} 	& \textbf{Expresión Regular} \\
	\tag{html} 		& \tag{html}	\\
	\tag{/html}	 	& \tag{/html}	\\
	\tag{head }		& \tag{head}	\\
	\tag{/head} 		& \tag{title} 	\\
	\tag{/title} 	& \tag{/title}	\\
	\tag{script} 	& \tag{script}	\\
	\tag{/script} 	& \tag{/script}	\\
	\tag{div} 		& \tag{div}	\\
	\tag{/div} 		& \tag{/div}	\\
	\tag{h1} 		& \tag{h1}	\\
	\tag{/h1} 		& \tag{/h1}	\\
	\tag{p} 			& \tag{p}	\\
	\tag{/p} 		& \tag{/p}	\\
	comentario 		& $<!-\Sigma^*->$	\\
	texto 			& $\Sigma^* \setminus$ comentario	\\
	textoScript 		& $\Sigma^* \setminus$ \tag{/script}	\\
	espacio 			& $\_^+$\\
\end{tabular}

La gramática no recibió cambios, pero sí lo hicieron las expresiones regulares de los tokens que quedaron de la siguiente manera:

\begin{tabular}{ l  l }
	\textbf{Token} 	& \textbf{Expresión Regular} \\
	\tag{html} 		& \tag{html}	\\
	\tag{/html}	 	& \tag{/html}	\\
	\tag{head }		& \tag{head}	\\
	\tag{/head} 		& \tag{title} 	\\
	\tag{/title} 	& \tag{/title}	\\
	\tag{script} 	& \tag{script}	\\
	\tag{/script} 	& \tag{/script}	\\
	\tag{div} 		& \tag{div}	\\
	\tag{br} 		& \tag{br}	\\
	\tag{/div} 		& \tag{/div}	\\
	\tag{h1} 		& \tag{h1}	\\
	\tag{/h1} 		& \tag{/h1}	\\
	\tag{p} 		& \tag{p}	\\
	\tag{/p} 		& \tag{/p}	\\
	comentario 		& \texttt{<!-texto->}	\\
	texto 			& \texttt{texto*} \\
	espacio 			& \texttt{spaces*}
\end{tabular}

Donde \emph{texto} es 

\begin{verbatim}
{' '|'0'..'9'|'a'..'z'|'A'..'Z'|'!'|'"'|'#'|'$'|'%'|'&'
|'/'|'('|')'|'='|'?'|'¡'|'¿'|'['|']'|'{'|'}'|'+'|'_'|'^'}  
\end{verbatim}

y donde \emph{spaces} es 

\begin{verbatim}
{' '|'\t'|'\r'|'\n'}
\end{verbatim}